/********************************************************************************
 *    Copyright (C) 2014 GSI Helmholtzzentrum fuer Schwerionenforschung GmbH    *
 *                                                                              *
 *              This software is distributed under the terms of the             * 
 *              GNU Lesser General Public Licence (LGPL) version 3,             *  
 *                  copied verbatim in the file "LICENSE"                       *
 ********************************************************************************/
#include "HiDaqInfoData.h"
#include <fairlogger/Logger.h>


#include <iostream>
using std::cout;
using std::endl;



// -----   Default constructor   -------------------------------------------
HiDaqInfoData::HiDaqInfoData()
{
}
// -------------------------------------------------------------------------

// -----   Standard constructor   ------------------------------------------
HiDaqInfoData::HiDaqInfoData(uint64_t TimeSliceID,
                    uint8_t nPxi,
                    uint16_t nFee, 
                    uint8_t pxiID, 
                    uint8_t feeID,
                    uint64_t FEEAddress,
                    uint32_t TSLength,
                    uint32_t PXILength,
                    uint32_t FEELength
                    )
    : fTimeSliceID(TimeSliceID),
      fNPxi(nPxi),
      fNFee(nFee),
      fPxiID(pxiID),
      fFeeID(feeID),
      fFEEAddress(FEEAddress),
      fTSLength(TSLength),
      fPXILength(PXILength),
      fFEELength(FEELength)
{
}

// -----   Destructor   ----------------------------------------------------
HiDaqInfoData::~HiDaqInfoData() { }
// -------------------------------------------------------------------------


// -----   Public method Print   -------------------------------------------
void HiDaqInfoData::Print() const
{
    LOG(debug2)<<"----- HiDaqInfoData Print -----"<<
    endl<<"TimeSliceID: "<<fTimeSliceID<<
    endl<<"NPxi: "<<int(fNPxi)<<
    endl<<"NFee: "<<fNFee<<
    endl<<"PxiID: "<<int(fPxiID)<<
    endl<<"FeeID: "<<int(fFeeID)<<
    endl<<"FEEAddress: "<<fFEEAddress<<
    endl<<"TSLength: "<<fTSLength<<
    endl<<"PXILength: "<<fPXILength<<
    endl<<"FEELength: "<<fFEELength<<
    endl<<"--------------------------";
}

// -------------------------------------------------------------------------

ClassImp(HiDaqInfoData)


